/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ace.game.particle;

import ace.geometry.Vector2D;
import ace.geometry.Vertex2D;

/**
 *
 * @author Hallucinogen
 */
public class ParticleEmitterFactory {
	public static ParticleEmitter blueExplosionEmitter(Vertex2D position) {
		return new ParticleEmitter(new Vertex2D(position), new Vector2D(0, 0), new Vector2D(7f, 7f), 1.0f, 0.001f, 70, 1000, 500, 0x6666fa, 0x222222, new Vector2D(0.0f, 0.0f), new Vector2D(0.1f, 0.1f), false, true);
	}

	public static ParticleEmitter customColorExplosionEmitter(Vertex2D position, int initialColor) {
		return new ParticleEmitter(new Vertex2D(position), new Vector2D(0, 0), new Vector2D(11.0f, 11.0f), 1.0f, 0.001f, 70, 500, 100, initialColor, 0x444444, new Vector2D(0.0f, 0.0f), new Vector2D(0.0f, 0.0f), true, true);
	}

    public static ParticleEmitter customColorHitEmitter(Vertex2D position, Vector2D bulletDirection, int initialColor) {
		return new ParticleEmitter(new Vertex2D(position), new Vector2D(bulletDirection.x * 8, bulletDirection.y * 8), new Vector2D(4.0f, 4.0f), 1.0f, 0.001f, 5, 300, 50, initialColor, 0x555555, new Vector2D(0.0f, 0.0f), new Vector2D(0.0f, 0.0f), true, true);
	}
}
